import 'package:flutter/material.dart';

// 重写的需要 flutter run （冷启动）
void main(List<String> args) {
  // 1、runApp函数
  runApp(MaterialApp(
      // Scaffold 脚手架
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        appBar: AppBar(
          title: const Text('首页'),
        ),
        body: const Center(
          child: Text(
            "Hello World",
            textDirection: TextDirection.ltr,
            style: TextStyle(fontSize: 30, color: Colors.red),
          ),
        ),
      )));
}
